package com.t235.gc.operations.service;

import com.t235.gc.dao.DeviceDao;
import com.t235.gc.entity.Device;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DeviceService {
    @Resource
    private DeviceDao deviceDao;

    public List<Device> selectDevice(){
        return deviceDao.selectDevice();
    }

    public List<Device> selectLessStockDevice(){
        return deviceDao.selectLessStockDevice();
    }

    public List<Device> selectFaultDevice(){
        return deviceDao.selectFaultDevice();
    }

    public Integer updateDeviceStatus(Integer deviceid){
        return deviceDao.updateDeviceStatus(deviceid);
    }

    public List<Device> selectOutLineDevice(Integer deviceid){
        return deviceDao.selectOutLineDevice(deviceid);
    }
}
